<?php /* Smarty version 2.6.26, created on 2015-10-24 15:11:33
         compiled from member.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'U', 'member.html', 38, false),array('modifier', 'date_format', 'member.html', 41, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	<meta name="description" content="后盾问答"/>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<link rel="stylesheet" href="Public/Home/Css/member.css" />

<!-- top结束 -->
<!--------------------中部-------------------->
	<div id='center'>
<!-- 左侧 -->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/memberLeft.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!-- 左侧结束 -->
		<div id='right'>
	
			<p class='title'><?php if ($_SESSION['uid'] == $_GET['uid']): ?>我<?php else: ?>他<?php endif; ?>的首页</p>

			<ul class='property'>
				<li>金币：<span><?php echo $this->_tpl_vars['login']['0']['point']; ?>
</span></li>
				<li>经验值：<span><?php echo $this->_tpl_vars['login']['0']['exp']; ?>
</span></li>
				<li>采纳率：<span><?php echo $this->_tpl_vars['login']['0']['c']; ?>
</span></li>
			</ul>
			<div class='list'>
				<p><span><?php if ($_SESSION['uid'] == $_GET['uid']): ?>我<?php else: ?>他<?php endif; ?>的提问 <b>(共<?php echo $this->_tpl_vars['login']['0']['ask']; ?>
条)</b></span><a href="./index.php?c=Member&a=myAsk">更多>></a></p>
				<table>
						<tr>
							<th class='t1'>标题</th>
							<th>回答数</th>
							<th class='t3'>更新时间</th>
						</tr>				

					<?php unset($this->_sections['n']);
$this->_sections['n']['loop'] = is_array($_loop=$this->_tpl_vars['myaskData']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['n']['name'] = 'n';
$this->_sections['n']['show'] = true;
$this->_sections['n']['max'] = $this->_sections['n']['loop'];
$this->_sections['n']['step'] = 1;
$this->_sections['n']['start'] = $this->_sections['n']['step'] > 0 ? 0 : $this->_sections['n']['loop']-1;
if ($this->_sections['n']['show']) {
    $this->_sections['n']['total'] = $this->_sections['n']['loop'];
    if ($this->_sections['n']['total'] == 0)
        $this->_sections['n']['show'] = false;
} else
    $this->_sections['n']['total'] = 0;
if ($this->_sections['n']['show']):

            for ($this->_sections['n']['index'] = $this->_sections['n']['start'], $this->_sections['n']['iteration'] = 1;
                 $this->_sections['n']['iteration'] <= $this->_sections['n']['total'];
                 $this->_sections['n']['index'] += $this->_sections['n']['step'], $this->_sections['n']['iteration']++):
$this->_sections['n']['rownum'] = $this->_sections['n']['iteration'];
$this->_sections['n']['index_prev'] = $this->_sections['n']['index'] - $this->_sections['n']['step'];
$this->_sections['n']['index_next'] = $this->_sections['n']['index'] + $this->_sections['n']['step'];
$this->_sections['n']['first']      = ($this->_sections['n']['iteration'] == 1);
$this->_sections['n']['last']       = ($this->_sections['n']['iteration'] == $this->_sections['n']['total']);
?>
						<tr>
							<td class='t1'>
								<a href="<?php echo ((is_array($_tmp='Ask/index')) ? $this->_run_mod_handler('U', true, $_tmp) : U($_tmp)); ?>
&cid=<?php echo $this->_tpl_vars['myaskData'][$this->_sections['n']['index']]['cid']; ?>
&asid=<?php echo $this->_tpl_vars['myaskData'][$this->_sections['n']['index']]['asid']; ?>
"><?php echo $this->_tpl_vars['myaskData'][$this->_sections['n']['index']]['content']; ?>
</a><span>[<?php echo $this->_tpl_vars['myaskData'][$this->_sections['n']['index']]['title']; ?>
]</span>
							</td>
							<td><?php echo $this->_tpl_vars['myaskData'][$this->_sections['n']['index']]['answer']; ?>
</td>
							<td class='t3'><?php echo ((is_array($_tmp=$this->_tpl_vars['myaskData'][$this->_sections['n']['index']]['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
						</tr>
					<?php endfor; else: ?>
						<tr height='140'>
							<td>你还没有进行过提问</td>
						</tr>
					<?php endif; ?>
				</table>
			</div>
			<div class='list'>
				<p><span><?php if ($_SESSION['uid'] == $_GET['uid']): ?>我<?php else: ?>他<?php endif; ?>的回答 <b>(共<?php echo $this->_tpl_vars['login']['0']['answer']; ?>
条)</b></span><a href="./index.php?c=Member&a=myAnswer">更多>></a></p>
				<table>
					<tr>
						<th class='t1'>标题</th>
						<th>回答</th>
						<th class='t3'>更新时间</th>
					</tr>
				<?php unset($this->_sections['n']);
$this->_sections['n']['loop'] = is_array($_loop=$this->_tpl_vars['myanswerData']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['n']['name'] = 'n';
$this->_sections['n']['show'] = true;
$this->_sections['n']['max'] = $this->_sections['n']['loop'];
$this->_sections['n']['step'] = 1;
$this->_sections['n']['start'] = $this->_sections['n']['step'] > 0 ? 0 : $this->_sections['n']['loop']-1;
if ($this->_sections['n']['show']) {
    $this->_sections['n']['total'] = $this->_sections['n']['loop'];
    if ($this->_sections['n']['total'] == 0)
        $this->_sections['n']['show'] = false;
} else
    $this->_sections['n']['total'] = 0;
if ($this->_sections['n']['show']):

            for ($this->_sections['n']['index'] = $this->_sections['n']['start'], $this->_sections['n']['iteration'] = 1;
                 $this->_sections['n']['iteration'] <= $this->_sections['n']['total'];
                 $this->_sections['n']['index'] += $this->_sections['n']['step'], $this->_sections['n']['iteration']++):
$this->_sections['n']['rownum'] = $this->_sections['n']['iteration'];
$this->_sections['n']['index_prev'] = $this->_sections['n']['index'] - $this->_sections['n']['step'];
$this->_sections['n']['index_next'] = $this->_sections['n']['index'] + $this->_sections['n']['step'];
$this->_sections['n']['first']      = ($this->_sections['n']['iteration'] == 1);
$this->_sections['n']['last']       = ($this->_sections['n']['iteration'] == $this->_sections['n']['total']);
?>	
					<tr>
						<td class='t1'>
							<a href="<?php echo ((is_array($_tmp='Ask/index')) ? $this->_run_mod_handler('U', true, $_tmp) : U($_tmp)); ?>
&cid=<?php echo $this->_tpl_vars['myanswerData'][$this->_sections['n']['index']]['cid']; ?>
&asid=<?php echo $this->_tpl_vars['myanswerData'][$this->_sections['n']['index']]['asid']; ?>
"><?php echo $this->_tpl_vars['myanswerData'][$this->_sections['n']['index']]['content']; ?>
</a><span>[<?php echo $this->_tpl_vars['myanswerData'][$this->_sections['n']['index']]['title']; ?>
]</span>
						</td>
						<td><?php echo $this->_tpl_vars['myanswerData'][$this->_sections['n']['index']]['answer']; ?>
</td>
						<td class='t3'><?php echo ((is_array($_tmp=$this->_tpl_vars['myanswerData'][$this->_sections['n']['index']]['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
					</tr>
				<?php endfor; else: ?>	
						<tr height='140'>
							<td>你还没有进行过回答</td>
						</tr>					
				<?php endif; ?>	
				</table>
			</div>
		</div>
	</div>
<!--------------------中部结束-------------------->

<!--------------------底部-------------------->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!-- 底部结束 -->